﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.Common;
using ElectronicCommerce.Framework.Payment.Contract.DataContract.Customer;

namespace ElectronicCommerce.Framework.Payment.Contract.DataContract.Order
{
    public class SalesOrder
    {
        public SalesOrder()
        {
            this.SOID = "";
            this.SOAmount = 0;
            this.SODesc = "";
            this.CurrencyCode = CurrencyCode.CNY;
            this.Customer = new Customer.Customer();
            this.ShippingAddress = new ShippingAddress();
            this.SODate = DateTime.Now;
        }

        /// <summary>
        /// 订单编码
        /// </summary>
        public string SOID { get; set; }

        /// <summary>
        /// 订单描述
        /// </summary>
        public string SODesc { get; set; }

        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal SOAmount { get; set; }

        /// <summary>
        /// 货币代码
        /// </summary>
        public CurrencyCode CurrencyCode { get; set; }

        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime SODate { get; set; }

        /// <summary>
        /// 客户信息(买方Buyer)
        /// </summary>
        public Customer.Customer Customer { get; set; }

        /// <summary>
        /// 运送地址
        /// </summary>
        public ShippingAddress ShippingAddress { get; set; }

        /// <summary>
        /// 我的订单详细页面地址
        /// </summary>
        public string MyOrderDetailURL
        {
            get;
            set;
        }
    }
}
